package leetcode.D500.T450;

import util.TreeNode;
import util.TreeUtil;

/**
 * @File Info: leetcode -- <T450>
 * @Author: 18362
 * @Create: 2021-06-25 1:40:52 星期五
 */
public class M450 {
    public static void main(String[] args) {
        TreeNode root = TreeUtil.deserialize("[5,3,6,2,4,null,7]");
        int key = 3;
        TreeUtil.printLevel(root);
        TreeUtil.printPreorder(root);
        TreeNode newRoot = new Solution().deleteNode(root, key);
        TreeUtil.printLevel(newRoot);
        TreeUtil.printPreorder(newRoot);
    }
}
